package com.rgp.servicedriveruser.feign;

import com.rgp.internalcommon.dto.ResponseResult;
import com.rgp.internalcommon.dto.TrackPointsDto;
import com.rgp.internalcommon.response.TerminalResponse;
import com.rgp.internalcommon.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-19 19:53
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping("terminal/add")
    public ResponseResult<TerminalResponse> addTerminal(@RequestParam("name") String name,@RequestParam("id")Long id);

    @PostMapping("track/add")
    public ResponseResult<TrackResponse> addTrack(@RequestParam("tid") Long tid);

    //车辆的轨迹点上传
    @PostMapping("track-point/upload")
    public ResponseResult uploadTrackPoints(@RequestBody TrackPointsDto trackPointsDto);
}